package producer.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import producer.feign.ProduceHelloService;

@RestController
public class HelloController {

    @Autowired
    private ProduceHelloService produceHelloService;

    @RequestMapping(value="/hello")
    public String updateDeptAPI(@RequestParam("name") String name ){
        String str =produceHelloService.hello( name );
        System.out.println("feign调用===="+str);
       return  str;
    }
}
